package com.briup.web_demo2.enums;

import lombok.Getter;

@Getter
public enum Gender {

    MAN(1,"男"),
    WOMAN(0,"女");

    private Integer code;
    private String name;

    Gender(Integer code,String name){
        this.code = code;
        this.name = name;
    }
}
class Test1{
    public static void main(String[] args) {
        System.out.println(Gender.MAN.getCode());
        System.out.println(Gender.MAN.getName());
    }
}